package exam.axhu.service;

import java.util.List;

import exam.axhu.entity.Course;
import exam.axhu.entity.CourseInfo;


public interface CourseService {

	public int addCourse(CourseInfo courseInfo);
	public void deleteCourse(String... courseIDs); //顺便删除学生信息
	public void updateCourse(CourseInfo courseInfo);
	public CourseInfo findByCourseID(String courseID);
	public List<CourseInfo> findByTeacherID(String teacherID);
	
	public int addStudent(String courseID, String studentID);
	public void deleteStudent(String courseID, String studentID);
	public void deleteWholeCourse(String courseID);
	public void updateStudent(String courseID, String studentID);
	public Course searchStudent(String courseID, String studentID);
	public List<Course> listStudentsByCourseID(String courseID);
	public List<Course> listCoursesByStudentID(String studentID);
}